package com.ruoyi.plus.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 区域对象 sys_area
 *
 * @author 李坤
 * @date 2020-02-09
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_area")
public class SysArea extends TreeEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 区域id
     */
    @TableField(value = "id")
    private Long id;

    /**
     * 区域名称
     */
    @Excel(name = "区域名称")
    @TableField(value = "area_name")
    private String areaName;

    /**
     * 区域全称
     */
    @TableField(value = "full_name")
    private String fullName;

    /**
     * 级别
     */
    @Excel(name = "级别")
    @TableField(value = "level")
    private Integer level;

    /**
     * 是否导入的数据
     */
    @Excel(name = "是否导入数据")
    @TableField(value = "imported")
    private Integer imported;

}
